import request from '@/utils/request'

// 获取客户列表
export function geiClientList(params) {
  return request.get('/clients', { params })
}

// 新建客户
export function addClient(data) {
  return request.post('/clients', data)
}
// 获取指定客户
export function getIdClient(id) {
  return request.get(`/clients/${id}`)
}
// 编辑客户
export function editFn(data) {
  return request.put(`/clients/${data.id}`, data)
}
// 删除客户
export function delClient(id) {
  return request.delete(`/clients/${id}`)
}
// 获取客户数量
export function getClientotal(params) {
  return request.get('/clients/count', { params })
}
// 获取经纪列表
export function getjingjiRList(params) {
  return request.get('/agents', { params })
}
